function Doit(value) { document.theform.cmd.value = value; document.theform.submit(); } %-cont-%